package task3;

public class SimCard {
    private String type;
    private String number;
    private String userName;
    private String passWord;
    private double balance;
    private int callDuration;
    private int data;

    public SimCard(String type, String number, String userName, String passWord, double balance, int callDuration, int data) {
        setType(type);
        setNumber(number);
        setUserName(userName);
        setPassWord(passWord);
        setBalance(balance);
        setCallDuration(callDuration);
        setData(data);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public int getCallDuration() {
        return callDuration;
    }

    public void setCallDuration(int callDuration) {
        this.callDuration = callDuration;
    }

    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    public void show(){
        System.out.println("卡号：\t" + number);
        System.out.println("用户名：\t" + userName);
        System.out.println("当前余额：\t" + balance);
    }
}
